
import 'package:fluro/fluro.dart';
import 'package:flutter_study/routers/study_router.dart';

import 'router_init.dart';



class Routes {

  static List<IRouterProvider> _listRouter = [];

  static void configureRoutes(FluroRouter router) {

    _listRouter.clear();
    /// 各自路由由各自模块管理，统一在此添加初始化
    _listRouter.add(StudyRouter());

    /// 初始化路由
    _listRouter.forEach((routerProvider) {
      routerProvider.initRouter(router);
    });
  }
}
